package GUI.Panels.GameObjectPanels;

import java.awt.BorderLayout;
import java.awt.Dimension;
import java.awt.event.ActionListener;

import javax.swing.JPanel;

import Helper.HelperMethods;

public class GameObjectPanel extends ObjectPanel
{
	private static final long serialVersionUID = 1L;
	
	private final JPanel buttonPanel = new JPanel();
	
	public GameObjectPanel(ActionListener actionListener, int width, int height)
	{
		setPreferredSize(new Dimension(width, height));
		setLayout(new BorderLayout());
		buttonPanel.setPreferredSize(new Dimension(width, height));
		addButtons(actionListener);
	}
	
	public void addButtons(ActionListener actionListener)
	{
//		HelperMethods.makeButton(buttonPanel, "Attack!");
		HelperMethods.makeButton(buttonPanel, "Stop!", actionListener);
		HelperMethods.makeButton(buttonPanel, "Move!", actionListener);
		this.add(buttonPanel, BorderLayout.NORTH);
	}
}
